<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--引入jstl标签库--%>
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/20
  Time: 9:53
  To change this template use File | Settings | File Templates.
--%>

<%@page isELIgnored="false" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--JSTL 标签库使用--%>
<%--    c:if 标签的使用--%>
    <%
       int i = 2;
       request.setAttribute("num",i);
    %>
    <c:if test="${num == 2}">
        num等于2条件为true
    </c:if>
<br>
    <c:if test="${num != 2}">
        num等于2条件为false
    </c:if>
<br>
</body>
</html>
